package com.zzj.ecology.system.bean.vo;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName LayTreeVo
 * @Description TODO
 * @Author zhijun zeng at 2020/3/14
 * @Version 1.0
 **/
public class LayTreeVo<T> implements Serializable {

    private Integer id;
    private String title;
    private String field;// = "laytreeids";//未设置 laytree 的 field 字段值时，默认FORM提交的是 layuiTreeCheck_id    如: layuiTreeCheck_1000002
    private List<LayTreeVo> children;
    private String href;
    private boolean spread = false;//节点是否初始展开，默认 false
    private boolean checked = false;//节点是否初始为选中状态（如果开启复选框的话），默认 false
    private boolean disabled = false;//节点是否为禁用状态。默认 false


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public List<LayTreeVo> getChildren() {
        return children;
    }

    public void setChildren(List<LayTreeVo> children) {
        this.children = children;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }
}
